libxenstat: Fix statistics for blktap disks on linux
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 10 Jun 2008 08:27:01 +0000 (09:27 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 10 Jun 2008 08:27:01 +0000 (09:27 +0100)
commit572d6c9581d7f82e387558edc94a2c3df9631186
tree15863615995ff3098ac3b5eab1649e7e965778aa
parentbb4e3f0ec086b5add7709533a2be0ac1d4aaec19
libxenstat: Fix statistics for blktap disks on linux

Overview: update xenstat vbd statistics parsing from
/sys/devices/xen-backend to process blktap disks

Reason:
        -blktap devices (now referenced as tap rather than vbd in
        /sys) have statistics counters
        (e.g.,  rd_req, wr_req, oo_req) prepended by tap_
        -xenstat behavior did not previously account for this
        behavior, which resulted in 0 disks
        visible and similarly impacted disk statistics

To reproduce these conditions, make a domain with tap:aio backed disks
on 3.2.x, run xentop, and press B to view VBD stats (nothing will
appear for the domain using tap:aio)

Signed-off-by: steve.maresca@gmail.com
tools/xenstat/libxenstat/src/xenstat_linux.c